.class public Lcom/example/m6wmr/MyCollectActivity;
.super Landroid/app/Activity;
.source "MyCollectActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/MyCollectActivity$MyAdapter;,
        Lcom/example/m6wmr/MyCollectActivity$MyHolder;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private adapter:Lcom/example/m6wmr/MyCollectActivity$MyAdapter;

.field private context:Landroid/content/Context;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private getString:Ljava/lang/String;

.field private gethttpString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private imageLoader:LPlugclass/ImageLoader;

.field private listView1:Landroid/widget/ListView;

.field private ll_nologin:Landroid/widget/LinearLayout;

.field private m:Lmyapp/MyApp;

.field private savedInstanceState:Landroid/os/Bundle;

.field private shopIds:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private shopItem:Landroid/view/View;

.field private shopMessages:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShopBean;",
            ">;"
        }
    .end annotation
.end field

.field private waitLoginView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 55
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 66
    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopIds:Ljava/util/ArrayList;

    .line 68
    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopMessages:Ljava/util/ArrayList;

    .line 70
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->getString:Ljava/lang/String;

    .line 55
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/MyCollectActivity;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopMessages:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/MyCollectActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/MyCollectActivity;)Lcom/example/m6wmr/MyCollectActivity$MyAdapter;
    .locals 1

    .prologue
    .line 76
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->adapter:Lcom/example/m6wmr/MyCollectActivity$MyAdapter;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/MyCollectActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/MyCollectActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 74
    iput-object p1, p0, Lcom/example/m6wmr/MyCollectActivity;->gethttpString:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/MyCollectActivity;)LPlugclass/ImageLoader;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->imageLoader:LPlugclass/ImageLoader;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/MyCollectActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->gethttpString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/MyCollectActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->ll_nologin:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/MyCollectActivity;)Landroid/view/View;
    .locals 1

    .prologue
    .line 80
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->waitLoginView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/MyCollectActivity;Landroid/view/View;)V
    .locals 0

    .prologue
    .line 80
    iput-object p1, p0, Lcom/example/m6wmr/MyCollectActivity;->waitLoginView:Landroid/view/View;

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6wmr/MyCollectActivity;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/MyCollectActivity;Lcom/example/m6wmr/MyCollectActivity$MyAdapter;)V
    .locals 0

    .prologue
    .line 76
    iput-object p1, p0, Lcom/example/m6wmr/MyCollectActivity;->adapter:Lcom/example/m6wmr/MyCollectActivity$MyAdapter;

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/MyCollectActivity;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->listView1:Landroid/widget/ListView;

    return-object v0
.end method

.method private gethttpData()V
    .locals 2

    .prologue
    .line 290
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/MyCollectActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/MyCollectActivity$3;-><init>(Lcom/example/m6wmr/MyCollectActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 309
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 312
    return-void
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 102
    iput-object p0, p0, Lcom/example/m6wmr/MyCollectActivity;->context:Landroid/content/Context;

    .line 103
    invoke-virtual {p0}, Lcom/example/m6wmr/MyCollectActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->m:Lmyapp/MyApp;

    .line 104
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->activities:Ljava/util/List;

    .line 105
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->activities:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 106
    new-instance v0, Ldbclass/DBOpenHelper;

    iget-object v1, p0, Lcom/example/m6wmr/MyCollectActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->helper:Ldbclass/DBOpenHelper;

    .line 107
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 108
    new-instance v0, LPlugclass/ImageLoader;

    iget-object v1, p0, Lcom/example/m6wmr/MyCollectActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->imageLoader:LPlugclass/ImageLoader;

    .line 109
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopIds:Ljava/util/ArrayList;

    .line 110
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopMessages:Ljava/util/ArrayList;

    .line 112
    return-void
.end method

.method private initView()V
    .locals 3

    .prologue
    .line 89
    const v0, 0x7f0c005d

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->listView1:Landroid/widget/ListView;

    .line 90
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->context:Landroid/content/Context;

    const v1, 0x7f030095

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->shopItem:Landroid/view/View;

    .line 91
    const v0, 0x7f0c005c

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->ll_nologin:Landroid/widget/LinearLayout;

    .line 94
    return-void
.end method


# virtual methods
.method public bindbtn()V
    .locals 3

    .prologue
    .line 349
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 350
    .local v0, "closebtn":Landroid/widget/LinearLayout;
    new-instance v2, Lcom/example/m6wmr/MyCollectActivity$4;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/MyCollectActivity$4;-><init>(Lcom/example/m6wmr/MyCollectActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 356
    const v2, 0x7f0c0016

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/example/location/BottomMenu;

    .line 357
    .local v1, "menu":Lcom/example/location/BottomMenu;
    const-string v2, "person"

    invoke-virtual {v1, v2}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 358
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 317
    const-string v0, "fdsafdsafdsa"

    const-string v1, "xxxxx"

    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 318
    const-string v0, "loginback"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "onActivityResultrequestCode"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 319
    const-string v2, "\n resultCode="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 318
    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 320
    const/16 v0, 0x64

    if-ne p1, v0, :cond_1

    .line 321
    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 323
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->ll_nologin:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 325
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->savedInstanceState:Landroid/os/Bundle;

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/MyCollectActivity;->onCreate(Landroid/os/Bundle;)V

    .line 342
    :cond_0
    :goto_0
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 343
    return-void

    .line 328
    :cond_1
    const/16 v0, 0x2712

    if-ne p1, v0, :cond_2

    .line 329
    const-string v0, "onActivityResult"

    const-string v1, "\u9000\u6b3e\u8fd4\u56de"

    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 333
    :cond_2
    const/16 v0, 0x3e9

    if-eq p1, v0, :cond_0

    .line 337
    const/16 v0, 0x2713

    if-ne p1, v0, :cond_0

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 117
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 118
    const v1, 0x7f030010

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/MyCollectActivity;->setContentView(I)V

    .line 119
    iput-object p1, p0, Lcom/example/m6wmr/MyCollectActivity;->savedInstanceState:Landroid/os/Bundle;

    .line 121
    invoke-direct {p0}, Lcom/example/m6wmr/MyCollectActivity;->initData()V

    .line 123
    invoke-direct {p0}, Lcom/example/m6wmr/MyCollectActivity;->initView()V

    .line 125
    invoke-direct {p0}, Lcom/example/m6wmr/MyCollectActivity;->gethttpData()V

    .line 126
    invoke-virtual {p0}, Lcom/example/m6wmr/MyCollectActivity;->bindbtn()V

    .line 130
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 131
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/m6wmr/MyCollectActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 132
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 136
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/MyCollectActivity;->listView1:Landroid/widget/ListView;

    new-instance v2, Lcom/example/m6wmr/MyCollectActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/MyCollectActivity$1;-><init>(Lcom/example/m6wmr/MyCollectActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 150
    new-instance v1, Lcom/example/m6wmr/MyCollectActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/MyCollectActivity$2;-><init>(Lcom/example/m6wmr/MyCollectActivity;)V

    iput-object v1, p0, Lcom/example/m6wmr/MyCollectActivity;->h:Landroid/os/Handler;

    .line 284
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 364
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 365
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 366
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 368
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 369
    iget-object v0, p0, Lcom/example/m6wmr/MyCollectActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 371
    :cond_1
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 376
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 378
    return-void
.end method
